package com.reggie.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

//订单表实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;//id主键
    private String number;//订单号
    private Integer status;//订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;//下单用户
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long addressBookId;//地址id
    private LocalDateTime orderTime;//下单时间
    private LocalDateTime checkoutTime;//结账时间
    private Integer payMethod;//支付方式 1微信,2支付宝
    private Double amount;//实收金额
    private String remark;//备注
    private String phone;//
    private String address;//
    private String userName;//
    private String consignee;//
}
